#include <unistd.h>
#include <syslog.h>

int main(int argc, char const *argv[])
{
	pid_t pid;
	daemon(1, 0);
	while(1)
	{
		pid=fork();
		if (pid==0)
		{
			execlp("/root/backupdatabase.sh", "backupdatabase.sh", NULL);
			_exit(0);
		}
		else
		{
			wait(0);
			syslog(LOG_USER|LOG_INFO,"backupdatabase seccess./n");
			sleep(28800);
		}
		
	}
	return 0;
}